using System;
using System.Collections.Generic;
using System.Text;

namespace EZCRS.HCMS.Entity
{
    public class hfg_present
    {
        private int? _id;
        private int? _gid;
        private int? _pid;
        private string _prsname = String.Empty;
        private string _simg = String.Empty;
        private string _bimg = String.Empty;
        private string _prsunit = String.Empty;
        private decimal _prsprice;
        private int? _prsprovider;
        private decimal _prsscore;
        private string _prscomment = String.Empty;
        private DateTime? _startdate;
        private DateTime? _enddate;
        private int? _prscount;
        private int? _prsmax;
        private byte _prstype;
        private byte _prsstatus;
        private DateTime? _indate;
        private string _inuser = String.Empty;
        private DateTime? _modidate;
        private string _modiuser = String.Empty;
        private int? _sid;

        public hfg_present()
        {
        }

      

        //protected void LoadFromReader(SqlDataReader reader)
        //{
        //    if (reader != null && !reader.IsClosed)
        //    {
        //        _id = reader.GetInt32(0);
        //        if (!reader.IsDBNull(1)) _gid = reader.GetInt32(1);
        //        if (!reader.IsDBNull(2)) _pid = reader.GetInt32(2);
        //        if (!reader.IsDBNull(3)) _prsname = reader.GetString(3);
        //        if (!reader.IsDBNull(4)) _simg = reader.GetString(4);
        //        if (!reader.IsDBNull(5)) _bimg = reader.GetString(5);
        //        if (!reader.IsDBNull(6)) _prsunit = reader.GetString(6);
        //        if (!reader.IsDBNull(7)) _prsprice = reader.GetDecimal(7);
        //        if (!reader.IsDBNull(8)) _prsprovider = reader.GetInt32(8);
        //        if (!reader.IsDBNull(9)) _prsscore = reader.GetDecimal(9);
        //        if (!reader.IsDBNull(10)) _prscomment = reader.GetString(10);
        //        if (!reader.IsDBNull(11)) _startdate = reader.GetDateTime(11);
        //        if (!reader.IsDBNull(12)) _enddate = reader.GetDateTime(12);
        //        if (!reader.IsDBNull(13)) _prscount = reader.GetInt32(13);
        //        if (!reader.IsDBNull(14)) _prsmax = reader.GetInt32(14);
        //        if (!reader.IsDBNull(15)) _prstype = reader.GetByte(15);
        //        if (!reader.IsDBNull(16)) _prsstatus = reader.GetByte(16);
        //        if (!reader.IsDBNull(17)) _indate = reader.GetDateTime(17);
        //        if (!reader.IsDBNull(18)) _inuser = reader.GetString(18);
        //        if (!reader.IsDBNull(19)) _modidate = reader.GetDateTime(19);
        //        if (!reader.IsDBNull(20)) _modiuser = reader.GetString(20);
        //        if (!reader.IsDBNull(21)) _sid = reader.GetInt32(21);
        //    }
        //}

        #region Public Properties
        public int? Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public int? gid
        {
            get { return _gid; }
            set { _gid = value; }
        }

        public int? pid
        {
            get { return _pid; }
            set { _pid = value; }
        }

        public string prsname
        {
            get { return _prsname; }
            set { _prsname = value; }
        }

        public string simg
        {
            get { return _simg; }
            set { _simg = value; }
        }

        public string bimg
        {
            get { return _bimg; }
            set { _bimg = value; }
        }

        public string prsunit
        {
            get { return _prsunit; }
            set { _prsunit = value; }
        }

        public decimal prsprice
        {
            get { return _prsprice; }
            set { _prsprice = value; }
        }

        public int? prsprovider
        {
            get { return _prsprovider; }
            set { _prsprovider = value; }
        }

        public decimal prsscore
        {
            get { return _prsscore; }
            set { _prsscore = value; }
        }

        public string prscomment
        {
            get { return _prscomment; }
            set { _prscomment = value; }
        }

        public DateTime? startdate
        {
            get { return _startdate; }
            set { _startdate = value; }
        }

        public DateTime? enddate
        {
            get { return _enddate; }
            set { _enddate = value; }
        }

        public int? prscount
        {
            get { return _prscount; }
            set { _prscount = value; }
        }

        public int? prsmax
        {
            get { return _prsmax; }
            set { _prsmax = value; }
        }

        public byte prstype
        {
            get { return _prstype; }
            set { _prstype = value; }
        }

        public byte prsstatus
        {
            get { return _prsstatus; }
            set { _prsstatus = value; }
        }

        public DateTime? indate
        {
            get { return _indate; }
            set { _indate = value; }
        }

        public string inuser
        {
            get { return _inuser; }
            set { _inuser = value; }
        }

        public DateTime? modidate
        {
            get { return _modidate; }
            set { _modidate = value; }
        }

        public string modiuser
        {
            get { return _modiuser; }
            set { _modiuser = value; }
        }

        public int? sid
        {
            get { return _sid; }
            set { _sid = value; }
        }
        #endregion
    }
}
